<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php include_slot('title') ?></title>
<meta name="keywords" content="<?php include_slot('keywords') ?>" />
<meta name="description" content="<?php include_slot('description') ?>" />
<?php include_stylesheets() ?>
<?php include_javascripts() ?>
<link rel="shortcut icon" href="/images/favicon.ico" />
</head>
<body id="mini">
  <div id="mini-header">
    <div class="wrap clearfix">
      <h1>
        <a href="<?php echo url_for('@homepage') ?>">五行测评</a>
      </h1>
      <div class="panel">
        <?php if ($sf_user->isAuthenticated()): ?>
        <?php echo $sf_user->getUsername() ?>
        <a href="<?php echo url_for('@center') ?>">会员中心</a>
        <a href="<?php echo url_for('@sf_guard_signout') ?>">退出</a>
        <?php else: ?>
        <a href="<?php echo url_for('@sf_guard_signin') ?>">登录</a>
        <a href="<?php echo url_for('@sf_guard_register') ?>">注册</a>
        <?php endif ?>
        <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=1749713698&amp;site=qq&amp;menu=yes">
          <img border="0" src="http://wpa.qq.com/pa?p=2:1749713698:41" alt="点击这里给我发消息" title="点击这里给我发消息" />
        </a>
      </div>
    </div>
  </div>
  <!-- end of header -->
  <div id="middle">
    <?php echo $sf_content ?>
  </div>
  <!-- end of middle -->
  <div id="mini-footer">
    <div class="wrap">
      <div class="copyright">
        <span class="float-right">
          &copy; 2011 wuxingceping.com, all rights reserved
          <a href="http://www.miibeian.gov.cn/" target="_blank">冀ICP备11011362号</a>
        </span>
        <span class="slogan">
          五行测评，帮你寻找困惑的答案！
        </span>
      </div>
    </div>
  </div>
  <!-- end of footer -->
  <script type="text/javascript">
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-23348222-1']);
    _gaq.push(['_trackPageview']);

    (function() {
      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();
  </script>
</body>
</html>